package com.liuyonggang.generator.action;

import org.springframework.stereotype.Controller;

@Controller
public class BaseAction {

  //当前页面
    private int pageNum; 
    //每页条数
    private int rowsPerPage;
    
    public int getPageNum() {
        return 0>=pageNum?1:pageNum;
    }
    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }
    public int getRowsPerPage() {
        return 0>=rowsPerPage?10:rowsPerPage;
    }
    public void setRowsPerPage(int rowsPerPage) {
        this.rowsPerPage = rowsPerPage;
    }
    @Override
    public String toString() {
        return String.format("BaseQueryDto [pageNum=%s, rowsPerPage=%s]", pageNum, rowsPerPage);
    } 
}
